package com.didd.core.common.base;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;


/**
 * 通用id入参实体
 *
 * @author diddd
 * @since 2019/12/11
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdRequest extends BaseRequest {

    /**
     * 主键id
     */
    @NotBlank(message = "主键id不能为空")
    protected String id;

    public IdRequest(String id) {
        this.id = id;
    }
}
